package com.itstyle.quartz.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jms.core.JmsTemplate;
import org.springframework.stereotype.Component;

@Component
public class ActiveMQClient {

    @Autowired
    private JmsTemplate jmsTemplate;


    public void send(String message) {
        jmsTemplate.convertAndSend("hongbo", message);

    }
}